package com.xydtech.ecard.ftp.enums;

/**
 * @Author: liliya
 * @Description: sys_dict_data  重定价频率(月)
 * TODO 固定利率贷款和存款不填此项,即:固定利率无重定价频率
 * TODO 浮动利率需有重定价频率
 * 3M  	3	repricing_frequency_type
 * 6M  	6	repricing_frequency_type
 * 12M	12	repricing_frequency_type
 * @Date: Created in 2023/8/15 19:25
 * @Modified:
 */

public enum FtpRepricingFrequencyTypeEnum {

    FREQUENCY_3M(3,"3M"),
    FREQUENCY_6M(6,"6M"),
    FREQUENCY_12M(12,"12M");

    private int value;
    private String label;

    FtpRepricingFrequencyTypeEnum(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public int getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    public static FtpRepricingFrequencyTypeEnum values(int code){
        for(FtpRepricingFrequencyTypeEnum enums : FtpRepricingFrequencyTypeEnum.values()){
            if(enums.getValue() == code){
                return enums;
            }
        }
        return null;
    }

}
